import request from '@/utils/request.js'
//查询品牌列表
export function listBrand(brand){
    return request({
        url:'/product/brand/list',
        method:'get',
        params:brand
    })
}
//新增品牌接口
export function addBrand(data) {
    return request({
      url: '/product/brand',
      method: 'post',
      data: data
    })
    
  }
  // 查询品牌详细
export function getBrand(id) {
  return request({
    url: '/product/brand/' + id,
    method: 'get'
  })
}
  //修改品牌
  export function updateBrand(data) {
    return request({
      url: '/product/brand',
      method: 'put',
      data: data
    })
  }

  //删除品牌
  export function delBrand(ids){
    return request ({
      url :'/product/brand/'+ids,
      method:'delete'
    })
  }

  // 获取全部品牌
export function getBrandAll() {
  return request({
    url: '/product/brand/getBrandAll',
    method: 'get'
  })
}